//
//  TJChatController.h
//  XWC
//
//  Created by Hello on 2022/10/24.
//

#import "HJBaseController.h"
#import "HJChatSessionModel.h"
#import "HJChatMessageModel.h"
#import "HJChatMessageLayout.h"
#import "HJMessageController.h"


NS_ASSUME_NONNULL_BEGIN

@class PHAsset;

@interface HJChatController : HJBaseController


@property (nonatomic, weak) HJMessageController *messageController;
@property (nonatomic, strong) HJChatSessionModel *sessionModel;

+ (instancetype)chatControllerWithSessionModel:(HJChatSessionModel *)sessionModel;

- (void)sendTextMessageByText:(NSString *)text;
- (void)sendVideoMessageByLocalPath:(NSString *)localPath photo:(UIImage *)photo;
- (void)sendImageMessageByLocalPath:(NSString *)localPath;
- (void)sendFileMessageByUrl:(NSURL *)URL;
- (void)sendVoiceMessageByLocalPath:(NSString *)localPath;
- (void)sendMediaMessageByAsset:(PHAsset *)asset photo:(UIImage *)photo;
- (void)sendMediaMessageByAssets:(NSArray <PHAsset *> *)asset photo:(NSArray <UIImage *> *)photo;
- (void)sendMediaMessageByFileURLs:(NSArray <NSURL *> *)fileURLs photo:(NSArray <UIImage *> *)photo;


@end

NS_ASSUME_NONNULL_END
